package com.czumi.javawx.util;

import com.czumi.javawx.dao.entity.WeixinFan;
import com.github.sd4324530.fastweixin.api.response.GetUserInfoResponse;

/**  
* 创建时间：2017年11月3日 下午9:53:39  
* 项目名称：javawx  
* @author 袁友林 
* 文件名称：EneityUtil.java  
* 类说明：  
*/
public class EneityUtil {
	public static WeixinFan convertWeixinFan(GetUserInfoResponse userinfo) {
		WeixinFan weixinFan = new WeixinFan();
		weixinFan.setCity(userinfo.getCity());
		weixinFan.setCountry(userinfo.getCountry());
		weixinFan.setGroupid(userinfo.getGroupid());
		weixinFan.setHeadimgurl(userinfo.getHeadimgurl());
		// weixinFan.setLanguage(userinfo.getLanguage());
		weixinFan.setNickname(userinfo.getNickname());
		weixinFan.setOpenid(userinfo.getOpenid());
		weixinFan.setProvince(userinfo.getProvince());
		weixinFan.setRemark(userinfo.getRemark());
		weixinFan.setSex(userinfo.getSex());
		weixinFan.setSubscribe(userinfo.getSubscribe());
		weixinFan.setSubscribeTime(userinfo.getSubscribeTime());
		return weixinFan;
	}
}
  
